package com.zhongkun.datahome.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhongkun.datahome.service.domain.Appointment;
import com.zhongkun.datahome.service.req.qry.appointment.AppointmentQry;
import com.zhongkun.datahome.service.res.appointment.AppointmentVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * 预约与客户关联表Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
public interface AppointmentMapper extends BaseMapper<Appointment> {
    IPage<AppointmentVo> pageAppointment(IPage<AppointmentVo> page, @Param("qry") AppointmentQry qry);

    Appointment queryMatchAppointment(Long customerHouseId);

    List<Appointment> queryAppointmentByTime(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
